package com.zc.blog.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

/**
 * （标签与文章）实体类
 * 1、通过标签id获取所有文章
 * 2、通过文章id获取所有标签
 */
@TableName("t_tag_article")
public class TagArticle {

    @TableId(type = IdType.AUTO)
    private Integer id; //文章标签与内容链接编号

    private Integer articleId; //文章Id

    private Integer tagId; //标签Id


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public Integer getTagId() {
        return tagId;
    }

    public void setTagId(Integer tagId) {
        this.tagId = tagId;
    }
}
